package com.java.pojo.bo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author jl
 * Created on 2020/10/13
 */
@Data
public class UserBo {

    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Length(min = 4, max = 32, message = "密码长度在6-32位之间")
    private String password;
    private String confirmPassword;
}
